<script>
export default {
  beforeRouteEnter(to, from) {
    console.log("home--组件内守卫beforeRouteEnter");
  },
  beforeRouteUpdate(to, from) {
    console.log("home--在重用的组件里调用 beforeRouteUpdate 守卫==>组件内守卫beforeRouteUpdate");
  },
  beforeRouteLeave(to, from) {
    console.log("home--在失活的组件里调用 beforeRouteLeave 守卫===>组件内守卫beforeRouteLeave");
  },
};
</script>

<template>home</template>

<style lang="scss"></style>
